package fr.aprr.geoloc.server.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import fr.aprr.geoloc.client.service.OngletsServices;
import fr.aprr.geoloc.server.dao.OngletsDao;
import fr.aprr.geoloc.shared.domain.FlotteVehiculeId;
import fr.aprr.geoloc.shared.domain.Onglets;

@Service("ongletsService")
public class OngletServiceImpl extends RemoteServiceServlet  implements OngletsServices{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	private OngletsDao ongletDao;
	
	
	public List<Onglets> getAllOnglets() {
		// TODO Auto-generated method stub
		List<Onglets> onglets = ongletDao.getAllOnglets();
		return onglets;
	}


	public Onglets getOnglets(Integer id) throws IllegalArgumentException {
		// TODO Auto-generated method stub
		return ongletDao.getOnglet(id);
	}


	public List<FlotteVehiculeId> getVehiculeByOnget(String nom_onglet)
			throws IllegalArgumentException {
		// TODO Auto-generated method stub
		return null;
	}
    
	
}
